tests: Fix regex escaping in test-summary-view.sh
authorPhilip Withnall <withnall@endlessm.com>
Mon, 8 May 2017 15:04:26 +0000 (16:04 +0100)
committerAtomic Bot <atomic-devel@projectatomic.io>
Mon, 8 May 2017 17:36:33 +0000 (17:36 +0000)
commit9690a54e47276e91fb022822498cb287c35d6fdb
treec7bde671b334371b8934574f444810493e4d0e83
parent4e13361c8e471822613cfad65e5b39f8ec6b91b7
tests: Fix regex escaping in test-summary-view.sh

There were some regex special characters in the pattern strings, which I
think were causing the test to fail on some Travis builds due to using
an invalid regex.

Fix that by matching using fixed strings instead. We don’t need regexes
here. Use a new assert_file_has_content_literal to do that for us.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
Closes: #838
Approved by: cgwalters
tests/libtest-core.sh
tests/test-summary-view.sh